package com.team11.server.service.student;

import com.team11.server.mapper.SInformationMapper;
import com.team11.server.mapper.StudentProjectCourseMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author DuKang
 * @Date 2021/7/11 11:45
 * @Desc:
 * @Version: 1.0
 */
@Service
public class StudentProjectCourseServiceImpl {
    @Resource
    private StudentProjectCourseMapper studentProjectCourseMapper;
    @Resource
    private SInformationMapper sInformationMapper;

    /**
     * 获取项目课程表
     * @param kcDate 日期
     * @param kcName 项目名称
     * @param sxtName 实训老师
     * @param zrtName 责任老师
     */
    public Object getProjectCourse(String sNumber,String kcDate, String kcName, String sxtName, String zrtName){
        Integer s=sInformationMapper.getSidById(sNumber);
        if (s==null){
            return "该学生不存在！";
        }
        return studentProjectCourseMapper.getProjectCourse(s,kcDate,kcName,sxtName,zrtName);
    }
}
